<!DOCTYPE html>
<!--管理员主页-->
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout" layout:decorate="~{layout/adminlayout}">
<head>
    <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
    <title>管理员主页</title>
</head>
<body>
<div layout:fragment="content">
    <blockquote class="layui-elem-quote layui-bg-green">
        <div id="nowTime"></div>
    </blockquote>
    <script type="text/javascript" th:src="@{js/nowTime.js}">
        //var tew=document.getElementById('nowTime')
    </script>
    <div id="ip" class="layui-elem-quote"></div>
    <script type="text/javascript">
        var tew=document.getElementById('ip');
        function getIP() {
            var cip=returnCitySN["cip"];
            var cname=returnCitySN["cname"];
            var ipname="本次登录IP："+cip+",地址："+cname;
            tew.innerHTML=ipname;//将时间显示在div内
        }
        getIP();
    </script>
</div>
</body>
</html>